import 'package:flutter/material.dart';
import 'package:get/get.dart';
import 'package:laos_mall/common/base/page_size_controller.dart';
import 'package:laos_mall/pages/point_mall/point_order_detail/view.dart';
class PointOrderLogic extends PageSizeLogic with GetTickerProviderStateMixin{
  late TabController tabController;
  final tabBarNames = ["pending_use","redeemed","expired"];
  @override
  void initConfig() {
    tabController = TabController(length: tabBarNames.length, vsync: this);
    var arg = Get.arguments;
    tabController.index = arg ?? 0;
    super.initConfig();
  }

  @override
  void dispose() {
    tabController.dispose();
    super.dispose();
  }

  jumpDetail(id)=> Get.to(()=>PointOrderDetailPage(),arguments: id);
}
